package com.school.movie.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 用于数据传输交互的常量
 *
 * @author zhaoren
 * @date 2020/07/16
 */
public interface Constants {

    interface Movie {

        @Getter
        @AllArgsConstructor
        enum MovieAction {

            /**
             * 已收藏
             */
            HAS_HOPE_LOOK("hasHopeLook");

            private final String name;
        }

        @Getter
        @AllArgsConstructor
        enum MoviePlayType {

            /**
             * 即将上映
             */
            COMING_SOON("COMING_SOON", 1),

            /**
             * 热门
             */
            HOT_MOVIE("HOT", 2),


            /**
             * 经典
             */
            CLASSIC("CLASSIC", 3);

            private final String name;
            private final Integer value;
        }

    }

    interface User {


        class OrderState {

            private OrderState() {
            }

            public static final String NOT_GET = "已购票";
            public static final String SUCCESS = "已取票";
            public static final String EXPIRED = "已过期";

        }


        class Action {

            private Action() {
            }

            public static final int HOPE_LOOK = 0;
            public static final int HAVE_SEEN = 1;

        }


        class SessionId {

            private SessionId() {
            }

            public static final String MANAGER_SESSION_ID = "userinfo";
            public static final String USER_SESSION_ID = "member";
            public static final String MOBILE_USER_SESSION_ID = "mobile_member";

        }

        class Authorization {

            private Authorization() {
            }

            public static final String CERTIFY = "v";

        }

        class Info {

            private Info() {
            }

            public static final int HOPE_LOOK_LIST = 0;
            public static final int HAVE_SEEN_LIST = 1;

        }

        class WebSocket{

            private WebSocket(){};

            public static final String USER_ID = "WEB_SOCKET_USER_ID";

        }

    }


}
